<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" type="text/css" href="../css/style.css"/>
  <title>JSAPI测试</title>
  <style type="text/css">
        .long_button {
            display: block;
            border: 1px solid;
            font-weight: 700;
            margin: 5px;
            height: 33px;
            line-height: 33px;
            text-align: center;
            letter-spacing: 0.5em;
            color: #fff;
            background-color: #0a7e81;
        }
  </style>
</head>
<body>
<p>setRightButton</p>
<a class="long_button" onclick="request0()">switch message</a>
<a class="long_button" onclick="request()">switch testPage</a>
<a class="long_button" onclick="request2()">switch testPage2 </a>
<textarea id="result" rows="10">

</textarea>
<script>
function request0(){
emp.window.switchHomeTab({
	id:"message"//tab 的id,对应的res/raw/config.json中tab配置的id字段
})
}
function request(){
emp.window.switchHomeTab({
	id:"testPage"//tab 的id,对应的res/raw/config.json中tab配置的id字段
})
}

function request2(){
emp.window.switchHomeTab({
	id:"testPage2"//tab 的id,对应的res/raw/config.json中tab配置的id字段
})
}
</script>
</body>
</html>
